<script setup lang="ts">
import HeaderArea from "@/components/search/HeaderArea.vue";
import {VipPower} from "@/api/http";
VipPower().then(res=>{
    console.log(res)
})
</script>

<template>
<div class="vipCenter">
    <HeaderArea>
        会员中心
    </HeaderArea>
    <div class="vipCard">
        <img src="./images/➤背景色.png" height="190" width="375"/>
    </div>
    <div class="vipPower">
        <h3>会员权益</h3>
        <div v-for="num in 10" :key="num" class="information">
            <p class="title">石家庄卓润照明有限公司</p>
            <p class="welFale">机上加斯啊好激动i阿萨都啊u收到idsa哦独傲神</p>
        </div>
    </div>
    <div class="disCountList">
        <h3>优惠列表</h3>
        <div v-for="num in 10" :key="num" class="information">
            <img src="./images/icon@3x.png" height="50px">
            <div>
                <p class="title">石家庄卓润照明有限公司：机上加斯啊好激动i阿萨都啊u收到idsa哦独傲神
                </p>

            </div>
            <span class="jiShangButton">冀商</span>
        </div>
    </div>
</div>
</template>

<style scoped lang="less">
//盒子样式
.vipCenter {
    //height: 667px;
    height: 98vh;
    border-radius: 0 0 30px 30px;
    width: 100%;
    background-color: black;
    overflow-x: clip;
    overflow-y: scroll;
    padding-bottom: 20px;
    //会员权益
    .vipPower, .disCountList {
        width: 90%;
        margin: 0 auto;
        margin-top: 20px;
        padding: 10px;
        border-radius: 20px;
        background-color: #27262b;
        color: white;

        .information {
            margin: 10px 0;
            font-size: 14px;
        }
    }

    .disCountList {
        .information {
            margin: 20px 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;

            p {
                width: 180px;
                margin-left: 5px;
                word-break: break-all;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2; /* 这里是超出几行省略 */
                overflow: hidden;
            }
        }


        .jiShangButton {
            padding: 5px 25px;
            height: 30px;
            color: black;
            background-image: linear-gradient(135deg, #f1efea, #ffecbf);
            border-radius: 20px;
        }
    }
}

//滚动条隐藏
.vipCenter::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}
</style>